/// FileName: common_listtile
/// Author: admin
/// Date: 2021-07-22 20:53
/// Description: 普通项目条

import 'package:flutter/material.dart';
import 'package:high_help_apps/common/values/colors.dart';
import 'package:high_help_apps/common/values/define.dart';

import 'package:flutter_screenutil/flutter_screenutil.dart';


class CommonListTile extends StatelessWidget {

  CommonListTile({this.title, required this.onPressed, this.suffixWidget});

  final String? title;
  final Widget? suffixWidget;
  final vfunc onPressed;

  @override
  Widget build(BuildContext context) {
    return ListTile(
      title: Text(
        title ?? '',
        style: TextStyle(
          color: AppColors.subTextColor,
          fontSize: 16.sp,
        ),
      ),
      trailing: suffixWidget ?? Icon(Icons.keyboard_arrow_right),
      onTap: onPressed,
    );
  }
}


